Total Complexity | 76 |
Dependencies | 10 |
Dependents | 1 |
Total lines | 480 |
Lines of code | 234 |
Logical lines of code | 128 |
Comment lines | 137 |
Methods | 29 |
Properties | 6 |
Method | Rating | Maintainability | Complexity | Lines of code |
---|---|---|---|---|
retryCommandOnFailure() | 48 | 11 | 33 | |
getConnection() | 58 | 7 | 17 | |
discover() | 56 | 5 | 19 | |
discoverFromMaster() | 55 | 5 | 18 | |
switchTo() | 61 | 5 | 12 | |
connect() | 65 | 4 | 10 | |
remove() | 60 | 3 | 14 | |
handleInfoResponse() | 62 | 3 | 11 | |
disconnect() | 68 | 3 | 8 | |
getConnectionById() | 66 | 3 | 9 | |
add() | 65 | 3 | 9 | |
discoverFromSlave() | 58 | 2 | 14 | |
getMasterOrDie() | 71 | 2 | 6 | |
setAutoDiscovery() | 71 | 2 | 6 | |
pickSlave() | 74 | 2 | 5 | |
isConnected() | 79 | 2 | 3 | |
__construct() | 79 | 2 | 3 | |
writeRequest() | 80 | 1 | 3 | |
readResponse() | 79 | 1 | 3 | |
executeCommand() | 79 | 1 | 3 | |
getSlaves() | 80 | 1 | 3 | |
getReplicationStrategy() | 82 | 1 | 3 | |
getMaster() | 82 | 1 | 3 | |
getCurrent() | 82 | 1 | 3 | |
switchToSlave() | 77 | 1 | 4 | |
switchToMaster() | 81 | 1 | 3 | |
reset() | 81 | 1 | 3 | |
setConnectionFactory() | 81 | 1 | 3 | |
__sleep() | 79 | 1 | 3 |